package com.example.selfcontrol.dto;

import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class TalkRespDTO {
    // “说说” 的聚合DTO

    private Long articleId ;

    private String AuthorImg ;

    private String AuthorName ;

    // 展开按钮前是 Brief , FullTalk 是全文
    private String TalkBrief ;

    private String FullTalk ;

    private Date createtime ;

    private Long ArticleCategory ;

    private int LikeCount ;

    // 存储说说的图片列表
    private List<String> ImgList ;

    private boolean IsLike  ;

    public TalkRespDTO(Long articleId, String authorImg, String authorName, String talkBrief, String fullTalk, Date createtime, Long articleCategory, int likeCount, List<String> imgList, boolean isLike) {
        this.articleId = articleId;
        this.AuthorImg = authorImg;
        this.AuthorName = authorName;
        this.TalkBrief = talkBrief;
        this.FullTalk = fullTalk;
        this.createtime = createtime;
        this.ArticleCategory = articleCategory;
        this.LikeCount = likeCount;
        this.ImgList = imgList;
        this.IsLike = isLike;
    }
}
